package modelo;

import java.util.Collection;
import java.util.Comparator;

public class ReporteVentasOrdenarPorMonto implements Comparator<Orden> {

	@Override
	public int compare(Orden o1, Orden o2) {
		Orden u1 = (Orden) o1;
		Orden u2 = (Orden) o2;
		return (int) (u1.getMonto()-u2.getMonto());
	}

	public boolean equals (Orden o){
		return this.equals(o);
	}
}
